package de.sabram.upb.specs.eee_tools.wizards;

import java.io.IOException;
import java.io.InputStream;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.dialogs.WizardNewFileCreationPage;

import de.sabram.upb.specs.eee_tools.Activator;

public class WizardConFileCreationPage extends WizardNewFileCreationPage {
	
	public WizardConFileCreationPage(IStructuredSelection selection) {
	super("e³ Con File Wizard", selection);
	setTitle("Con File Wizard");
	setDescription("Create a con File");
	setFileExtension("con");
}
	@Override
	protected InputStream getInitialContents() 
	{
		String templateFilePath = "src/de/sabram/upb/specs/eee_tools/templates/con-template.txt";
	
	InputStream inputStream = null;
	try
	{
		inputStream = Activator.getDefault().getBundle().getEntry(templateFilePath).openStream();
	}
		catch(IOException e){
		//null
		}
		return inputStream;
	}
}
